package com.umakr.ax.app.web;

import com.umakr.ax.common.service.AppVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author Mikey
 * @date 2018/3/17
 */
@Controller
@RequestMapping("/api/version")
public class ApkAppController {

    @Autowired
    AppVersionService appVersionService;
    @RequestMapping("/check")
    @ResponseBody
    public Object checkAppVersion(String os,Integer versionCode,String versionName){
        return appVersionService.checkAppVersion(os,versionCode,versionName);
    }

    @RequestMapping("/getNewAppVersionName")
    @ResponseBody
    public Object getNewAppVersionName(){
        return appVersionService.getNewAppVersionName();
    }
}
